package cn.ecut.services;

import cn.ecut.dao.ApplyDao;
import cn.ecut.model.Apply;

import java.util.List;

public class ApplyServices {
    private ApplyDao applyDao = new ApplyDao();
    public List<Apply> loadByGoodId(Integer applygoodId ) {
        List<Apply> applyList =  applyDao.loadByGoodId(applygoodId);
        return applyList;
    }
    public boolean updateApplyState(Integer applyId) {
        return applyDao.updateApplyState(applyId);
    }
    public boolean updateApplyState2(Integer applyId) {
        return applyDao.updateApplyState2(applyId);
    }
    public boolean deleteApply(Integer applyId) {
        return applyDao.deleteApply(applyId);
    }
}
